// 窗口resize事件
function resizeLayout() {
    var wHeight = (window.document.documentElement.clientHeight || window.document.body.clientHeight || window.innerHeight),
        floderbtn = $('#floderbtn').outerHeight(),
        r_head_H = $('.right-area header').outerHeight();
    var nav_slider_H = wHeight - floderbtn,
        iframe_H = wHeight - r_head_H - 20;
    $('.nav-slider ul').outerHeight(nav_slider_H);
    $('#mian_frame').outerHeight(iframe_H);
};
$(window).resize(function() {
    resizeLayout();
});
$(document).ready(function($) {
    resizeLayout();
    $('#floderbtn').click(function(){
        if($(this).next().hasClass('am-open')){
            $(this).next().removeClass('am-open').addClass('am-closed');
            $('.right-area').css('padding-left',0);
        }else{
            $(this).next().removeClass('am-closed').addClass('am-open');
            $('.right-area').css('padding-left','7%');
        }

    })
});